﻿using System;
using System.Collections.Generic;
using System.Text;
using FDFtpSync.Core;

namespace FDFtpSync.Entities.Extensions
{
    /*
     * CreatedOn: 2018-05-23
     * CreatedBy: Jackie Lee(天宇遊龍)
     */
    public static class ObjExtensions
    {
        public static string ToJson(this object obj)
        {
            return SyncContext.Current.Serializer.ToJson(obj);
        }
        public static T FromJson<T>(this string str)
        {
            return SyncContext.Current.Serializer.FromJson<T>(str);
        }
    }
}
